package com.test.designpattern.decoration;

/**
 * Created by jl on 2018/8/29 0029
 */
public class RoastFood extends FoodDecoration {

    private Food food;

    public RoastFood(Food food) {
        this.food = food;
    }

    @Override
    public String getDesc() {
        return getDecoration() + food.getDesc();
    }

    private String getDecoration() {
        return "烤";
    }
}
